package cn.zysuyuan.item.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Table;
import java.io.File;
import java.io.Serializable;
import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2019/10/28 15:37
 */

public class Medicinal implements Serializable {


    private static final long serialVersionUID = 1L;

    private String id;
    private String mName;
    private String mMethod;
    private String mRemarks;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date mCreateTime;
    private Integer mType;
    private String imgPath;
    private String imgPathOut;
    private String imgOriginPathOut;//判断修改图片属性时，有没有选择更新的图片，当没有图片时，需要将服务器中的原图片删除
    private String mLatinName;//药材拉丁名称
    private File 	 imgFile;

    private String mOriginName;           //基源名称
    private String mOriginLatinName;           //基源拉丁名
    private String mOriginInterview;           //基源简介
    private String mOriginImgPath;           //基源图片名称
    private String mPriceLink;           //价格链接

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public String getmMethod() {
        return mMethod;
    }

    public void setmMethod(String mMethod) {
        this.mMethod = mMethod;
    }

    public String getmRemarks() {
        return mRemarks;
    }

    public void setmRemarks(String mRemarks) {
        this.mRemarks = mRemarks;
    }

    public Date getmCreateTime() {
        return mCreateTime;
    }

    public void setmCreateTime(Date mCreateTime) {
        this.mCreateTime = mCreateTime;
    }

    public Integer getmType() {
        return mType;
    }

    public void setmType(Integer mType) {
        this.mType = mType;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getImgPathOut() {
        return imgPathOut;
    }

    public void setImgPathOut(String imgPathOut) {
        this.imgPathOut = imgPathOut;
    }

    public String getImgOriginPathOut() {
        return imgOriginPathOut;
    }

    public void setImgOriginPathOut(String imgOriginPathOut) {
        this.imgOriginPathOut = imgOriginPathOut;
    }

    public String getmLatinName() {
        return mLatinName;
    }

    public void setmLatinName(String mLatinName) {
        this.mLatinName = mLatinName;
    }

    public File getImgFile() {
        return imgFile;
    }

    public void setImgFile(File imgFile) {
        this.imgFile = imgFile;
    }

    public String getmOriginName() {
        return mOriginName;
    }

    public void setmOriginName(String mOriginName) {
        this.mOriginName = mOriginName;
    }

    public String getmOriginLatinName() {
        return mOriginLatinName;
    }

    public void setmOriginLatinName(String mOriginLatinName) {
        this.mOriginLatinName = mOriginLatinName;
    }

    public String getmOriginInterview() {
        return mOriginInterview;
    }

    public void setmOriginInterview(String mOriginInterview) {
        this.mOriginInterview = mOriginInterview;
    }

    public String getmOriginImgPath() {
        return mOriginImgPath;
    }

    public void setmOriginImgPath(String mOriginImgPath) {
        this.mOriginImgPath = mOriginImgPath;
    }

    public String getmPriceLink() {
        return mPriceLink;
    }

    public void setmPriceLink(String mPriceLink) {
        this.mPriceLink = mPriceLink;
    }
}
